const state = {
	listen: false // 是否开启听单
};

const mutations = {
	doListen: state =>{
		state.listen = true;
	},
	cancelListen: state => {
		state.listen = false;
	}
};

const actions = {
	DOLISTEN({commit}){
		commit('doListen');
	},
	CANCELLISTEN({commit}){
		commit('cancelListen');
	}
}

export default {
	namespaced: true,
	mutations,
	actions,
	state
}